Matthias Clasen [Thu, 11 Jan 2018 00:06:45 +0000 (19:06 -0500)]
Split NEWS
Split the NEWS file at the major release boundaries.
Matthias Clasen [Wed, 10 Jan 2018 21:43:17 +0000 (16:43 -0500)]
docs: Mention textures in the GtkImage docs
This is now the preferred way to load images.
Timm Bäder [Wed, 10 Jan 2018 15:01:37 +0000 (16:01 +0100)]
scrolledwindow: Remove workarounds
Instead of making sure here that the scrollbars are the last children,
just add the bin child as first one and keep the scrollbars last.
Timm Bäder [Wed, 10 Jan 2018 13:41:29 +0000 (14:41 +0100)]
magnifier: gtk_snapshot_finish may return NULL
Matthias Clasen [Wed, 10 Jan 2018 12:35:46 +0000 (07:35 -0500)]
Quiet a compiler warning
Avoid this warning the other way, without bumping the libvulkan
dependency.
Matthias Clasen [Wed, 10 Jan 2018 12:34:36 +0000 (07:34 -0500)]
Revert "Quiet a compiler warning"
This reverts commit
888f289114756daeb80591afd48496fce1d63e8d.
Timm Bäder [Wed, 10 Jan 2018 10:02:10 +0000 (11:02 +0100)]
entry: Fix text clipping
Clipping the text to the entire widget allocation is wrong if there are
icons involved.
Timm Bäder [Wed, 10 Jan 2018 09:49:13 +0000 (10:49 +0100)]
entry: Fix get_text_allocation
These should be reported in GtkEntry coordinates, so relative to the
entry's origin. This fixes entrys with top/bottom padding applied.
Timm Bäder [Wed, 10 Jan 2018 09:10:11 +0000 (10:10 +0100)]
adwaita: Add some spacing to the scale value
So the slider does not overlap the value label. Since the value label is
allocated at the widget edge in gtk3, the correct fix here would
probably be to remove the 12px padding we apply to the entire scale and
instead apply it only to the trough.
Руслан Ижбулатов [Mon, 11 Dec 2017 07:39:08 +0000 (07:39 +0000)]
GDK W32: Remove non-managed DnD code
All DnD is now managed in GDK.
This commit also rearranges some code in _gdk_win32_window_drag_begin().
https://bugzilla.gnome.org/show_bug.cgi?id=773299
Руслан Ижбулатов [Mon, 11 Dec 2017 07:37:03 +0000 (07:37 +0000)]
GDK W32: stop using the OWNERCHANGE event
It was removed completely. For now just comment out the code that used to emit it.
https://bugzilla.gnome.org/show_bug.cgi?id=773299
Timm Bäder [Wed, 10 Jan 2018 08:29:45 +0000 (09:29 +0100)]
adwaita: Fix scale styling for latest changes
Timm Bäder [Wed, 10 Jan 2018 08:29:05 +0000 (09:29 +0100)]
scale: Allocate marks widget along the trough
Timm Bäder [Tue, 9 Jan 2018 07:23:36 +0000 (08:23 +0100)]
testheightforwidth: Remove "vertical labels" test
This was testing lables with the angle property set, which doesn't exist
anymore.
Timm Bäder [Tue, 9 Jan 2018 05:12:46 +0000 (06:12 +0100)]
renderbackground: Avoid excess css value lookups
We iterate over all background layers twice, so only lookup blend mode
vlaues once.
Timm Bäder [Tue, 9 Jan 2018 05:00:57 +0000 (06:00 +0100)]
renderbackground: Add some constness
Timm Bäder [Tue, 9 Jan 2018 04:59:19 +0000 (05:59 +0100)]
renderbackground: Pull out a gdk_rgba_is_clear check
We only call snapshot_color once, and this way it's clearer that nothing
will happen for a clear color from the caller side.
Timm Bäder [Mon, 8 Jan 2018 21:00:57 +0000 (22:00 +0100)]
GdkDrawingContext: Add missing nullable annotation
Timm Bäder [Mon, 8 Jan 2018 20:46:16 +0000 (21:46 +0100)]
gl renderer: Sprinkle some const around
Timm Bäder [Mon, 8 Jan 2018 20:30:10 +0000 (21:30 +0100)]
widget: Refine docs a bit
Matthias Clasen [Wed, 10 Jan 2018 05:14:10 +0000 (00:14 -0500)]
Document the new GDK_VULKAN_DEVICE envvar
Best to document them while they're fresh.
Matthias Clasen [Wed, 10 Jan 2018 05:11:25 +0000 (00:11 -0500)]
Document the GDK_VULKAN env var
This was not documented at all yet.
Matthias Clasen [Wed, 10 Jan 2018 05:09:25 +0000 (00:09 -0500)]
Add missing debug keys to the docs
Several values for GDK_DEBUG were missing from the docs.
Matthias Clasen [Wed, 10 Jan 2018 05:02:23 +0000 (00:02 -0500)]
Drop unused GDK_GL values
And document the existing ones.
Matthias Clasen [Wed, 10 Jan 2018 04:16:30 +0000 (23:16 -0500)]
Drop unused debug keys
The multihead, xim and xinerama keys do nothing anymore.
Matthias Clasen [Wed, 10 Jan 2018 04:15:33 +0000 (23:15 -0500)]
Drop no-longer-existing debug keys from the docs
There is no draw or nogl value for GDK_DEBUG.
Matthias Clasen [Wed, 10 Jan 2018 04:07:08 +0000 (23:07 -0500)]
Drop another unused debug value
GTK_DEBUG_MULTIHEAD is unused as well.
Matthias Clasen [Wed, 10 Jan 2018 03:56:05 +0000 (22:56 -0500)]
Remove an unused debug value
GTK_DEBUG_MISC is not used at all. Drop it.
Matthias Clasen [Wed, 10 Jan 2018 01:40:47 +0000 (20:40 -0500)]
Docs: Drop section on commandline arguments
We no longer do that.
Matthias Clasen [Wed, 10 Jan 2018 01:33:04 +0000 (20:33 -0500)]
vulkan: Add a way to specify a device
We should be smarter in picking a good device eventually,
but for now, we just allow to explicitly choose one. To
see a list of all devices, use GDK_VULKAN_DEVICE=list
To specify which device to use, use GDK_VULKAN_DEVICE=<number>
Matthias Clasen [Tue, 9 Jan 2018 22:48:51 +0000 (17:48 -0500)]
Make size request warnings more useful
Print the css name of the widget in question, so we have
a chance of knowing that this is caused by the marks, not
by the slider.
Matthias Clasen [Tue, 9 Jan 2018 22:20:44 +0000 (17:20 -0500)]
Quiet a compiler warning
Vulkan grew a new error code.
Matthias Clasen [Tue, 9 Jan 2018 22:20:23 +0000 (17:20 -0500)]
Fix file chooser
Now that the places sidebar is private, we need to
ensure the type is known.
Matthias Clasen [Mon, 8 Jan 2018 19:37:45 +0000 (14:37 -0500)]
Drop GtkPlacesSidebar from public API
This is a bit of filechooser internals that gets shared with
nautilus, which is fine, but it shouldn't be part of our
public API. There are no other users than nautilus.
Timm Bäder [Mon, 8 Jan 2018 17:59:01 +0000 (18:59 +0100)]
gl renderer: Fix shaders for gles
Remove uniform initializers, add casts to float, etc.
Timm Bäder [Mon, 8 Jan 2018 17:36:48 +0000 (18:36 +0100)]
gl: Fix copy&paste error in blur shader
Timm Bäder [Mon, 8 Jan 2018 17:10:02 +0000 (18:10 +0100)]
inspector: Stop adding event controllers to the object tree
There's a dedicated "Gesture" page for all the gestures.
Sveinn í Felli [Mon, 8 Jan 2018 17:47:11 +0000 (17:47 +0000)]
Update Icelandic translation
(cherry picked from commit
d96a7c9e87576850992e1b90af803bd18878103f)
Timm Bäder [Mon, 8 Jan 2018 16:37:35 +0000 (17:37 +0100)]
adwaita: Uncomment accidentally commented lines
The result looks wrong but the css looks right.
Timm Bäder [Mon, 8 Jan 2018 15:36:44 +0000 (16:36 +0100)]
treeview: Stop rendering focus outline
This is done on a widget-level via css these days.
Timm Bäder [Sun, 7 Jan 2018 10:55:40 +0000 (11:55 +0100)]
widget: Fix css padding debug drawing
Timm Bäder [Sat, 6 Jan 2018 12:02:31 +0000 (13:02 +0100)]
gl renderer: Bring back hexbox drawing
Timm Bäder [Fri, 5 Jan 2018 17:14:51 +0000 (18:14 +0100)]
gl renderer: Use alpha uniform in inset shadow shader
Matthias Clasen [Sun, 7 Jan 2018 17:42:27 +0000 (12:42 -0500)]
toolbutton: Fix off-center icons
When the toolbar style is both-horiz, and the item
is not important, we were not centering the icon in the
same way as in gtk3. The reason is that we overlooked
the expand child property being set to TRUE in this case.
Daniel Boles [Sun, 7 Jan 2018 16:47:24 +0000 (16:47 +0000)]
ScrolledWindow: add() before remove() in snippet
We can't remove() a child widget that wasn't already add()ed, of course.
Ting-Wei Lan [Sat, 6 Jan 2018 19:39:22 +0000 (03:39 +0800)]
build: Use pkg-config to find iso-codes
Instead of hard-coding the path of iso-codes, we can get the prefix with
pkg-config. We still fallback to /usr when it is not available.
https://bugzilla.gnome.org/show_bug.cgi?id=792282
Matthias Clasen [Sat, 6 Jan 2018 14:36:55 +0000 (09:36 -0500)]
gsk: Move Vulkan sources to a subdirectory
Following what was already done for GL.
Rico Tzschichholz [Sat, 6 Jan 2018 08:34:44 +0000 (09:34 +0100)]
filechooser: Add missing array annotations to add_choice()
Rico Tzschichholz [Sat, 6 Jan 2018 08:27:44 +0000 (09:27 +0100)]
iconview: Prevent ownership transfer of cell out-param in get_item_at_pos()
Matthias Clasen [Sat, 6 Jan 2018 01:30:14 +0000 (20:30 -0500)]
gsk: Fix hexbox drawing for the Vulkan renderer
Just as in the cairo renderer, we can get this back
by using pango_cairo_show_glyph_string for populating
the cache.
Matthias Clasen [Fri, 5 Jan 2018 23:55:23 +0000 (18:55 -0500)]
gsk: Fix hexbox drawing for fallback rendering
pango does not currently export api for drawing hex boxes,
but by using pango_cairo_show_glyph_string, we can reuse its
implementation.
Matthias Clasen [Fri, 5 Jan 2018 22:15:44 +0000 (17:15 -0500)]
Implement equal for GtkCssImageUrl
This should in theory speed some things up if the same
image is used in multiple places.
Matthias Clasen [Fri, 5 Jan 2018 20:54:49 +0000 (15:54 -0500)]
label: Properly handle multi-line selections
They were rendered as a single rectangle, which is not
what is expected. Same for multi-line links.
Matthias Clasen [Fri, 5 Jan 2018 16:09:04 +0000 (11:09 -0500)]
file button: Don't leak rows
The file chooser button manually manages the memory of
data in its model, so it needs to explicitly free the
rows.
Khaled Hosny [Fri, 5 Jan 2018 13:31:41 +0000 (15:31 +0200)]
Update Arabic translation
Matthias Clasen [Fri, 5 Jan 2018 03:55:04 +0000 (22:55 -0500)]
wayland: Plug memory leaks
We were forgetting to free the GdkContentFormats
objects in an early exit case.
Matthias Clasen [Fri, 5 Jan 2018 03:54:29 +0000 (22:54 -0500)]
Plug a memory leak
gdk_pixbuf_format_get_name returns newly allocated
strings.
Matthias Clasen [Fri, 5 Jan 2018 03:24:43 +0000 (22:24 -0500)]
label: Plug a memory leak
We were sometimes leaking the content serializer object.
Matthias Clasen [Fri, 5 Jan 2018 03:24:21 +0000 (22:24 -0500)]
font chooser: Plug a memory leak
We were leaking the hb_font object.
Matthias Clasen [Fri, 5 Jan 2018 02:19:28 +0000 (21:19 -0500)]
font chooser: Fix a memory leak
We were leaking the delayed font descriptions.
Matthias Clasen [Thu, 4 Jan 2018 23:23:36 +0000 (18:23 -0500)]
Remove a dead macro
GCs have been dead for a long time.
Matthias Clasen [Thu, 4 Jan 2018 23:22:47 +0000 (18:22 -0500)]
Quiet the doc build a bit
Matthias Clasen [Thu, 4 Jan 2018 20:55:09 +0000 (15:55 -0500)]
gdk: Convince gtk-doc to include backend docs
This is almost as unpleasant with meson as it is with autotools.
Timm Bäder [Thu, 4 Jan 2018 20:38:22 +0000 (21:38 +0100)]
notebook: Fix wrong tab widgets allocation
Since we allocate the tab widgets on demand, we have to queue an extra
resize here.
Timm Bäder [Thu, 4 Jan 2018 17:25:55 +0000 (18:25 +0100)]
widget: Avoid casting event coordinates to int in contains()
Matthias Clasen [Thu, 4 Jan 2018 20:26:52 +0000 (15:26 -0500)]
docs: Remove unused images
All the old cursor font images are unused.
Matthias Clasen [Thu, 4 Jan 2018 02:21:58 +0000 (21:21 -0500)]
fontchooser: fix feature formatting
There was a " missing, causing some features to be missed.
Timm Bäder [Thu, 4 Jan 2018 12:16:24 +0000 (13:16 +0100)]
window: Fix an event widget/target mixup
This makes dragging inside a GtkEntry in the window decoration work
again.
Timm Bäder [Thu, 4 Jan 2018 12:15:15 +0000 (13:15 +0100)]
widget: Ignore non-gestures in _gtk_widget_consumes_motion
priv->event_controllers is a list of all event controllers, which aren't
all GtkGesture subclasses.
Timm Bäder [Thu, 4 Jan 2018 11:17:21 +0000 (12:17 +0100)]
filechooser: Manage spinner state
So we don't get an allocate every frame.
Timm Bäder [Thu, 4 Jan 2018 10:43:43 +0000 (11:43 +0100)]
gl renderer: Add test case for last commit
Timm Bäder [Thu, 4 Jan 2018 10:41:51 +0000 (11:41 +0100)]
gl renderer: Fix text color pre-multiplication
Timm Bäder [Thu, 4 Jan 2018 10:08:39 +0000 (11:08 +0100)]
recorder: Fix a button tooltip
This button will save the selected node to a file, not all recorded
frames.
Piotr Drąg [Wed, 3 Jan 2018 20:28:36 +0000 (21:28 +0100)]
Update POTFILES.skip
Matthias Clasen [Wed, 3 Jan 2018 19:23:33 +0000 (14:23 -0500)]
gtk-demo: Update font explorer example
Revise the UI (no more double checkboxes), add font variations,
update font features from the dialog, allow tweaking ranges.
Piotr Drąg [Wed, 3 Jan 2018 19:24:05 +0000 (20:24 +0100)]
Update POTFILES.in
Matthias Clasen [Wed, 3 Jan 2018 19:06:00 +0000 (14:06 -0500)]
font chooser: Manage tweak button sensitivity
When we don't have any font features or variation axes,
there is no point in going to the tweak page, so disable
the action in this case.
Matthias Clasen [Wed, 3 Jan 2018 19:04:50 +0000 (14:04 -0500)]
font chooser dialog: Improve sensitivity handling
We should not tie the sensitivity of the select button
to the tweak action, since there may be fonts which are
selectable, but not tweakable.
Instead, enable the select button when a font is selected,
as it should be.
Matthias Clasen [Wed, 3 Jan 2018 18:41:20 +0000 (13:41 -0500)]
font chooser: Don't set hardcoded default features
We should rely on harfbuzz to select the right defaults.
Matthias Clasen [Wed, 3 Jan 2018 18:28:33 +0000 (13:28 -0500)]
font chooser: Support font variations
Add sliders for the available axes to the tweak page.
Matthias Clasen [Wed, 20 Dec 2017 14:11:04 +0000 (09:11 -0500)]
font button: Take variations into account
We need to apply variations too, when we are using
the font to render the button label.
Matthias Clasen [Wed, 20 Dec 2017 05:45:30 +0000 (00:45 -0500)]
Implement font-variation-settings
This is a CSS font level 4 property that lets us
use font variation settings from css.
Matthias Clasen [Wed, 3 Jan 2018 18:06:28 +0000 (13:06 -0500)]
Bump the pango requirement
We want to use the new font variation api in pango 1.41.
Matthias Clasen [Wed, 3 Jan 2018 04:52:24 +0000 (23:52 -0500)]
font chooser: Add properties for features and language
These can't be returned as part of the font description,
so we need new api for them. For now, this is just readonly
properties. Maybe these should be writable too, eventually.
Matthias Clasen [Wed, 3 Jan 2018 04:46:37 +0000 (23:46 -0500)]
Add font features on the tweak page
Matthias Clasen [Wed, 3 Jan 2018 03:52:05 +0000 (22:52 -0500)]
font chooser: Add a tweak page
Add a button the dialog's header bar that lets us
switch to a second page where we can customize
the selected font.
Make the font chooser widget export an action that the
dialog can use for the button. This has some advantages:
- we can export not just the toggle state, but also enabled
- we can reuse the same enabled state to make the select
button insensitive when no font is selected
To determine whether a font is selected, listen to changes
of the list selection. And ensure that the font chooser is
in an initial state when mapped, even if we close the dialog
from the tweak page.
Matthias Clasen [Thu, 21 Dec 2017 16:58:20 +0000 (11:58 -0500)]
font button: Remove show-font and show-size
These are now handled in a more systematic fashion
using GtkFontChooserLevel.
Matthias Clasen [Thu, 21 Dec 2017 15:51:04 +0000 (10:51 -0500)]
font chooser: introduce font chooser levels
This is a more systematic approach to reducing the
level of detail in the font chooser.
Matthias Clasen [Tue, 19 Dec 2017 22:10:34 +0000 (17:10 -0500)]
font chooser: Small revision of the UI
Show only the font names in the list, in their own
font, in order to make the list less noisy.
Timm Bäder [Wed, 3 Jan 2018 16:10:21 +0000 (17:10 +0100)]
Make a few more code samples compile
Timm Bäder [Wed, 3 Jan 2018 15:39:31 +0000 (16:39 +0100)]
entry: Remove some questionable code examples
Timm Bäder [Wed, 3 Jan 2018 15:34:49 +0000 (16:34 +0100)]
widget: Make all code snippets compile
Timm Bäder [Wed, 3 Jan 2018 15:14:47 +0000 (16:14 +0100)]
Move geometry management docs do GtkWidget
Both GtkWidget and GtkContainer had similar docs regarding hfw/wfh
geometry management. Move these just to GtkWidget. Also make sure the
examples compile, port everything from gtk_preferred_* to measure and
replace some occurrences of "container" with "widget" where container
was just used to refer to a widget with child widgets.
Timm Bäder [Wed, 3 Jan 2018 14:01:12 +0000 (15:01 +0100)]
liststore: Make a code snippet compile
Timm Bäder [Wed, 3 Jan 2018 13:37:01 +0000 (14:37 +0100)]
searchbar: Make a code snippet compile
Timm Bäder [Wed, 3 Jan 2018 13:32:44 +0000 (14:32 +0100)]
menuitem: Make a code snippet compile
Timm Bäder [Wed, 3 Jan 2018 13:29:00 +0000 (14:29 +0100)]
expander: Make a code snippet compile
Timm Bäder [Wed, 3 Jan 2018 13:10:22 +0000 (14:10 +0100)]
treeviewcolumn: Make a code snippet compile
Timm Bäder [Wed, 3 Jan 2018 13:01:38 +0000 (14:01 +0100)]
notebook: Make a code snippet compile
Timm Bäder [Wed, 3 Jan 2018 12:51:03 +0000 (13:51 +0100)]
scrolledwindow: Fix code sample compilation